﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyComment.aspx.cs" Inherits="CungMuaC5.Account_Admin.DanhSachComment" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="MainContent" style="background-color: #FFFFFF">
        <div style="height: auto; width: 100%; background-color: #FFFFFF;">
            <div align="center" style="height: 50px; background-color: #444444; ">
                <asp:Label ID="Label16" runat="server" Font-Bold="True" Font-Size="XX-Large" 
                    ForeColor="White" Text="Quản lý Comment"></asp:Label>
            </div>
        </div>
        <div style="height: auto; width: 100%; padding-top: 5px; background-color: #FFFFFF;">
            <div style="height: 35px">
                <div align="right" 
                    style="float: left; width: 20%; height: 30px; padding-top: 5px;">
                    <asp:Label ID="Label14" runat="server" Font-Bold="True" ForeColor="#003300" 
                        Text="Tên Người Đăng :"></asp:Label>
                </div>
                <div style="float: right; width: 78%; height: 30px; padding-top: 5px;">
                    <div align="left" 
                        style="float: right; width: 50%; height: 30px; padding-top: 5px;">
                        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                            Text="Tìm Kiếm" 
                            PostBackUrl='<%# Eval("NguoiPost", "~/Account_Admin/QuanLyComment/QuanLyComment.aspx?makm={0}") %>' />

                    </div>
                    <div style="float: left; width: 45%; height: 30px; padding-top: 5px;">
                        <asp:TextBox ID="TextBox2" runat="server" Width="273px" 
                            ontextchanged="TextBox2_TextChanged"></asp:TextBox>
                    </div>
                </div>
            </div>
        </div>
        <div style="height: auto; width: 100%; padding-top: 5px; background-color: #FFFFFF;">
            <div style="height: 35px">
                <div align="right" 
                    style="float: left; width: 20%; height: 30px; padding-top: 5px;">
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="#003300" 
                        Text="Tên Khuyến Mãi:"></asp:Label>
                </div>
                <div style="float: right; width: 78%; height: 30px; padding-top: 5px;">
                    <div align="left" 
                        style="float: right; width: 50%; height: 30px; padding-top: 5px;">
                        <asp:Button ID="Button2" runat="server" Text="Tìm Kiếm" 
                            onclick="Button2_Click" />
                    </div>
                    <div style="float: left; width: 45%; height: 30px; padding-top: 5px;">
                        <asp:TextBox ID="TextBox1" runat="server" ForeColor="#003300" Width="273px" 
                            ontextchanged="TextBox1_TextChanged"></asp:TextBox>
                    </div>
                </div>
            </div>
        </div>
        <div style="height: auto">
            
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:HyperLink ID="HyperLink4" runat="server" 
                NavigateUrl="~/Account_Admin/QuanLyComment/QuanLyComment.aspx">All Comment</asp:HyperLink>
            
            <br />
        </div>
        <div style="height: auto; padding-top: 5px;width:100%; background-color: #FFFFFF;" 
            align="center">
            <div align="right" style="float: left; width: 100%; height: auto; padding-top: 0px; background-color: #FFFFFF">
            
                 <div align="left" style="float: right; width: 95%; height: auto; padding-top: 0px;background-color: #FFFFFF">
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" 
                CellPadding="4" ForeColor="#333333" 
                onpageindexchanging="GridView1_PageIndexChanging" 
                onselectedindexchanged="GridView1_SelectedIndexChanged" PageSize="15" Width="809px" 
                         ShowHeaderWhenEmpty="True" GridLines="None">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="NguoiPost" HeaderText="Người Post" />
                    <asp:BoundField DataField="NoiDung" HeaderText="Nội Dung" />
                    <asp:HyperLinkField DataNavigateUrlFields="MaKhuyenMai" 
                        DataNavigateUrlFormatString="~/Products/ProductDetail.aspx?makm={0}" 
                        DataTextField="KhuyenMai" HeaderText="Khuyến Mãi" />
                    <asp:BoundField DataField="ThoiGian" HeaderText="Ngày Đăng" />
                    <asp:BoundField DataField="TinhTrang" HeaderText="Tình Trạng" />
                    <asp:HyperLinkField DataNavigateUrlFields="MaComment" 
                        Text="Sửa" 
                        
                        DataNavigateUrlFormatString="~/Account_Admin/QuanLyComment/Comment_Sua.aspx?ma={0}" />
                    <asp:HyperLinkField DataNavigateUrlFields="MaComment" 
                        DataNavigateUrlFormatString="~/Account_Admin/QuanLyComment/QuanLyComment.aspx?ma={0}" 
                        Text="Xóa" />
                </Columns>
                <EditRowStyle BackColor="#7C6F57" />
                <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#E3EAEB" />
                <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
            </asp:GridView>
            <br />
            </div>
            </div>

        </div>
    </div>
</asp:Content>
